﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="addnewmovie.aspx.vb" Inherits="WuggiSum.addnewmovie" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<table>
    <tr>
        <td>
        Movie Title:
        </td>
        <td>
            <asp:TextBox ID="TB_m_title" runat="server"></asp:TextBox>
        </td>
    </tr>
   <tr>
        <td>
        Description:
        </td>
        <td>
            <asp:TextBox ID="TB_m_desc" runat="server" Height="61px"></asp:TextBox>
        </td>
    </tr>
       <tr>
        <td>
        Starring:
        </td>
        <td>
            <asp:TextBox ID="TB_m_starring" runat="server"></asp:TextBox>
        </td>
    </tr>
       <tr>
        <td>
        PG Rating:
        </td>
        <td>
            <asp:TextBox ID="TB_m_pg" runat="server"></asp:TextBox>
        </td>
    </tr>
       <tr>
        <td>
        Poster:
        </td>
        <td>
            <asp:FileUpload ID="fup_RPicture" runat="server" />
        </td>
    </tr>
       <tr>
        <td>
        Production Year:
        </td>
        <td>
            <asp:TextBox ID="TB_m_year" runat="server"></asp:TextBox>
        </td>
    </tr>
       <tr>
        <td>
        Subgenre:
        </td>
        <td>
            <asp:DropDownList ID="DDL_sub_id" runat="server" Width="300px" 
                DataSourceID="SqlDataSource1" DataTextField="s_genre" 
                DataValueField="sub_id">
            </asp:DropDownList>
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
                ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>" 
                SelectCommand="SELECT [s_genre], [sub_id] FROM [subgenre]"></asp:SqlDataSource>
        </td>
    </tr>
       <tr>
        <td>
        Duration:
        </td>
        <td>
            <asp:TextBox ID="TB_m_duration" runat="server"></asp:TextBox>
        </td>
    </tr>
       <tr>
        <td colspan="2" style="text-align: center">
            <asp:Button ID="add" runat="server" Text="Add"  />
        </td>
    </tr>
</table>
</asp:Content>
